<%--
	author:daniel.yan
	time:2012/4/22 12:09:13
--%>



<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib uri="TowkerTagLib" prefix="rbac"%>
<%@ taglib uri="/WEB-INF/tags/CommonFunction.tld" prefix="cfn" %> 
<%@include file="/commons/include/html_doctype.html"%>
<html>
<head>
	<title>明细</title>
	<%@include file="/commons/include/getById.jsp" %>
	<script type="text/javascript">
$(function(){
	
});
	</script>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" class="listLogo">
	<tr>
		<td class="title">订单明细</td>
		<td>
			<div class="menuTool">
				<a class="back" onClick="javascript:window.history.back();return false;" href="#">返回</a>
			</div>
		</td>
	</tr>
</table>
<div class="line"></div>
<table border="0" cellspacing="1" cellpadding="0" class="listTable">
	<tr>
		<td class="form_title"  >订单号：</td>
		<td class="form_input">${fn:escapeXml(po.order_sn)}</td>
	
		<td class="form_title">客户代码：</td>
		<td class="form_input">${fn:escapeXml(po.custom_code)}</td>
		
		<td class="form_title">客户名称：</td>
		<td class="form_input">${fn:escapeXml(po.customs_name)}</td>
	</tr>
	<tr>
		<td class="form_title">用户代码：</td>
		<td class="form_input">${fn:escapeXml(po.user_code)}</td>
	
		<td class="form_title">制单日期：</td>
		<td class="form_input"><fmt:formatDate pattern="yyyy-MM-dd" value="${po.create_date}" /></td>
		
		<td class="form_title">订单提交日期：</td>
		<td class="form_input"><fmt:formatDate pattern="yyyy-MM-dd" value="${po.submit_date}" /></td>
	</tr>
	<tr>
		<!-- 
		<td class="form_title">制单时间：</td>
		<td class="form_input"><fmt:formatDate pattern="yyyy-MM-dd" value="${po.create_time}" /></td>
		 -->
		<td class="form_title">报价审核用户代码：</td>
		<td class="form_input">${fn:escapeXml(po.baojia_sh_user_code)}</td>
		
		<td class="form_title">递交下一级报价日期：</td>
		<td class="form_input"><fmt:formatDate pattern="yyyy-MM-dd" value="${po.baojia_date}" /></td>
	
		<td class="form_title">报价时间：</td>
		<td class="form_input"><fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${po.baojia_time}" /></td>
		
	</tr>
	<tr>
		<!-- 
		<td class="form_title">订单提交时间：</td>
		<td class="form_input"><fmt:formatDate pattern="yyyy-MM-dd" value="${po.submit_time}" /></td>
		-->
		<td class="form_title">报价用户代码：</td>
		<td class="form_input">${fn:escapeXml(po.baojia_user_code)}</td>
	
		<td class="form_title">报价后递交下一级确认日期：</td>
		<td class="form_input"><fmt:formatDate pattern="yyyy-MM-dd" value="${po.baojia_qr_date}" /></td>
		
		<td class="form_title">报价确认时间：</td>
		<td class="form_input"><fmt:formatDate pattern="yyyy-MM-dd  HH:mm:ss" value="${po.baojia_qr_time}" /></td>
	</tr>
	<tr>
		<td class="form_title">订单确认用户代码：</td>
		<td class="form_input">${fn:escapeXml(po.baojia_qr_user_code)}</td>
		
		<td class="form_title">用户确认订单报价后递交下一级审核日期：</td>
		<td class="form_input"><fmt:formatDate pattern="yyyy-MM-dd" value="${po.baojia_sh_date}" /></td>
	
		<td class="form_title">报价审核时间：</td>
		<td class="form_input"><fmt:formatDate pattern="yyyy-MM-dd  HH:mm:ss" value="${po.baojia_sh_time}" /></td>
		
	</tr>
	<tr>
		<td class="form_title">订单状态：</td>
		<td class="form_input"  colspan="5">${fn:escapeXml(cfn:getOrderStatusText(po.status))}</td>
	
	</tr>
	<tr>
		<td class="form_title">备注：</td>
		<td class="form_input"  colspan="5">${fn:escapeXml(po.remark)}</td>
		
	</tr>
    <tr>
		<td class="form_title">报价备注：</td>
		<td class="form_input"  colspan="5">${fn:escapeXml(po.bj_remark)}</td>
		
	</tr>
    <tr>
		<td class="form_title">确认备注：</td>
		<td class="form_input"  colspan="5">${fn:escapeXml(po.qr_remark)}</td>
		
	</tr>
    <tr>
		<td class="form_title">审核备注：</td>
		<td class="form_input"  colspan="5">${fn:escapeXml(po.sh_remark)}</td>
		
	</tr>
	<tr>
	  <td class="form_title">产品报价</td>
	  <td class="form_input" colspan="5"><table width="340" border="0" cellpadding="2" cellspacing="1" class="listLogo" id="MGoodsPanel">
	    <tr>
	      <td>产品代码</td>
	      <td>产品名称</td>
	      <td>订购数量</td>
	      <td>产品价标</td>
	      <td>产品单价</td>
	      <td>产品金额</td>
	      <td>重量</td>
	      <td>计量单位</td>
          </tr>
	      <c:forEach items="${refGoods}" var="rg" varStatus="status">
	      <tr>
	      <td>${rg.goods_sn}</td>
	      <td>${rg.goods_name}</td>
	      <td>
          	${rg.amount}
          </td>
	      <td>
	      	${rg.discount}%
	      </td>
	      <td id="sprice_${rg.goods_id}">
	      	${rg.sprice}
	      </td>
	      <td id="totalM_${rg.goods_id}">${rg.sumMoney}</td>
	      <td id="totalM_${rg.goods_id}">${rg.weight}</td>
	      <td id="totalM_${rg.goods_id}">${rg.unit}</td>
	      </tr>
	      </c:forEach>
      </table></td>
    </tr>
</table>
</body>
</html>
